package com.jz;

import com.jz.model.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Hasee on 2022-02-24.
 */
@FeignClient(value = "provider123")//需要跨的服务名称
public interface ProviderClient {
    @GetMapping("feignProvider")
    public String feignProvider();

    @PostMapping("postProvider")
    public String postProvider(@RequestBody UserVo userVo);

    @GetMapping("provider")
    public String testProvider(@RequestParam("id") Integer id, @RequestParam("name")String name);
}
